package com.my.netty.promote.message;

import lombok.*;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class LoginRequestMessage extends Message implements Serializable {

    private String username;
    private String password;
    private String nickname;

    public LoginRequestMessage(String username, String password) {
        this(username, password, username);
    }
    @Override
    public int getMessageType() {
        return Message.LOGIN_REQUEST_MESSAGE;
    }
}
